package com.tjresearch.threaddemo;

public class PersonThread1 extends Thread {
	@Override
	public void run() {
		for(int i = 0;i<10;i++){
			
			try {
				MainTest.setThreadName("PersonThread1");
				Thread.sleep(1000);
				System.out.println("i am PersonThread1"+MainTest.getThreadName());
			} catch (InterruptedException e) {
				
				e.printStackTrace();
			}
			
			
		}
	}
	
	

}
